// request 是我们封装的一个网络请求库
import request from './../utils/request';
import config from './../config';
import {
    empty
} from './../utils/helper';

const url = config.service.host;

// 发送短信验证码
export function sendPhoneCode(params, cb = function () { }) {
    request(`${url}/index/sendPhoneCode`, params).then((res) => {
        cb(res)
    })
}

// 提交入驻申请
export function submitApplicationForEntry(params, cb = function() {}) {
    request(`${url}/index/submitApplicationForEntry`, params).then((res) => {
        cb(res)
    })
}
